class CreateTaiSans < ActiveRecord::Migration
  def up
    create_table :tai_sans do |t|
      t.string :MaTS
      t.string :TenTS
      t.references :LoaiTaiSan
      t.references :HangSanXuat
      t.references :NhaCungCap
      t.string :DVTinh
      t.string :DonGia
      t.integer :SoLuong
      t.text :ThongsoKT
      t.integer :SoNamSD

      t.timestamps
    end
  end
  def down
    drop_table :tai_sans
  end
end
